﻿<%@ Page Title="经营企业信息" Language="C#" MasterPageFile="~/Master/MasterPage_New.master"
    AutoEventWireup="true" CodeBehind="CompanyOfMonthJY.aspx.cs" Inherits="HZ.Supervise.Web.Secondphase.ReportCompany.CompanyOfMonthJY" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td align="right">
                    企业名称：
                </td>
                <td align="left">
                    <asp:TextBox ID="txtcompanyname" MaxLength="25" runat="server"></asp:TextBox>
                </td>
                <td align="right">
                    &nbsp;
                </td>
                <td align="left">
                    &nbsp;
                </td>
                <td width="100px">
                    
                </td>
                <td>
                    排序字段：
                </td>
                <td align="right">
                    按<asp:DropDownList ID="droSort" runat="server" Height="20px" Width="100px">
                        <asp:ListItem Value="-1">全部药品</asp:ListItem>
                        <asp:ListItem Value="0">基本药品</asp:ListItem>
                        <asp:ListItem Value="1">非基本药品</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td align="left">
                    的<asp:DropDownList ID="droSortField" runat="server" Height="20px" Width="146px">
                        <asp:ListItem Value="PuchaseCountSum asc">经营企业采购总数量 升序</asp:ListItem>
                        <asp:ListItem Value="PuchaseCountSum desc">经营企业采购总数量 降序</asp:ListItem>
                        <asp:ListItem Value="WareHouseCount asc">经营企业入库总数量 升序</asp:ListItem>
                        <asp:ListItem Value="WareHouseCount desc">经营企业入库总数量 降序</asp:ListItem>
                        <asp:ListItem Value="PuchaseCountSumHospital asc">经营企业出库数量 升序</asp:ListItem>
                        <asp:ListItem Value="PuchaseCountSumHospita descl">经营企业出库数量 降序</asp:ListItem>
                        <asp:ListItem Value="PuchaseCountAmountHospital asc">经营企业出库金额 升序</asp:ListItem>
                        <asp:ListItem Value="PuchaseCountAmountHospital desc">经营企业出库金额 降序</asp:ListItem>
                        <asp:ListItem Value="StockCount asc">经营企业库存数量 升序</asp:ListItem>
                        <asp:ListItem Value="StockCount desc">经营企业库存数量 降序</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                   <asp:Button ID="btnQuery" runat="server" Text="查询" CssClass="searchbtn" SkinID="search"
                        ToolTip="点击查询符合条件的数据" OnClick="btnQuery_Click" />
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwSortInfo" OnRowCreated="gvwSortInfo_RowCreated" CssClass="mainlist"
        runat="server" AutoGenerateColumns="False" EmptyDataText="暂无有效的信息！" OnRowCommand="gvwSortInfo_RowCommand">
        <Columns>
            <asp:BoundField HeaderText="企业名称" DataField="BuyName" />
            <asp:TemplateField HeaderText="采购类型">
                <ItemTemplate>
                    <%#HZ.Supervise.Web.Function.FormatDrugSource(Eval("Source"))%>
                </ItemTemplate>
                <HeaderStyle Width="60px" />
            </asp:TemplateField>
            <asp:BoundField HeaderText="经营企业采购总数量" DataField="PuchaseCountSum" />
            <asp:BoundField HeaderText="经营企业入库总数量" DataField="WareHouseCount" />
            <asp:BoundField DataField="PuchaseCountSumHospital" HeaderText="经营企业出库数量" ReadOnly="True" />
            <asp:BoundField DataField="PuchaseCountAmountHospital" HeaderText="经营企业出库金额" ReadOnly="True" />
            <asp:BoundField DataField="StockCount" HeaderText="经营企业库存数量" ReadOnly="True" />
            <asp:TemplateField HeaderText="操作">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <%--<a href="CompanyCurrentGoodsListJY.aspx">详情</a>--%>
                    <asp:LinkButton ID="linkCompanyCurrentGoodsListJY" runat="server" CommandName="CompanyCurrentGoodsListJY"
                        CommandArgument='<%#Eval("BuyName") %>' Text="详情"></asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div>
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server">
        </webdiyer:AspNetPager>
    </div>
</asp:Content>
